﻿// Decompiled with JetBrains decompiler
// Type: MG_Cooler.MGSpaceCooler
// Assembly: MG_Cooler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 7560BFF2-5E64-4596-AB14-3DB707CE39FE
// Assembly location: E:\docs\Klei\OxygenNotIncluded\mods\Steam\2573951847\MG_Cooler.dll

using UnityEngine;

namespace MG_Cooler
{
  public class MGSpaceCooler : SpaceHeater, ISim1000ms
  {
    public static Color32 TintColourColor = new Color32((byte) 25, byte.MaxValue, byte.MaxValue, byte.MaxValue);
    [MyCmpGet]
    internal KBatchedAnimController animController;

    private void UpdateColor()
    {
      if (!((Object) this.animController != (Object) null))
        return;
      this.animController.TintColour = MGSpaceCooler.TintColourColor;
    }

    public void Sim1000ms(float dt) => this.UpdateColor();

    protected override void OnSpawn()
    {
      base.OnSpawn();
      this.UpdateColor();
    }
  }
}
